using SheLife.Domain.Common;

namespace SheLife.Domain.Entities
{
    /// <summary>
    /// 成长里程碑实体类
    /// </summary>
    public class GrowthMilestone : BaseEntity
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 目标ID
        /// </summary>
        public Guid? GoalId { get; set; }

        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; } = string.Empty;

        /// <summary>
        /// 描述
        /// </summary>
        public string Description { get; set; } = string.Empty;

        /// <summary>
        /// 状态：0-未完成，1-已完成
        /// </summary>
        public int Status { get; set; } = 0;

        /// <summary>
        /// 预计完成日期
        /// </summary>
        public DateTime? ExpectedDate { get; set; }

        /// <summary>
        /// 实际完成日期
        /// </summary>
        public DateTime? CompletedDate { get; set; }

        // 导航属性
        public virtual SystemUser? User { get; set; }
        public virtual GrowthGoal? Goal { get; set; }
    }
}